﻿using Unity.Collections;
using Unity.Mathematics;

namespace Yoozoo.Mars.Got.SpriteAnim
{
    public struct AnimSpriteCreatorData
    {
        // 传入 UpdateParticleJob 的结构，只存放要用到的数据
        // 精灵信息，这里参照 ParticleSystemJobData，
        // 不再为AnimSprite建立一个结构，而是将AnimSprite中要用的属性都单独提取出来作为一个NativeArray

        /// <summary>
        /// 粒子透明度
        /// </summary>
        public NativeArray<byte> alphas;

        /// <summary>
        /// 动画从头开始播放
        /// </summary>
        public NativeArray<bool> restarts;

        /// <summary>
        /// 当前的动作编号
        /// </summary>
        public NativeArray<int> actions;

        public NativeArray<float3> rotations;

        /// <summary>
        /// 动画播放速度
        /// </summary>
        public NativeArray<float> speeds;

        public NativeArray<float3> positions;

        public NativeArray<float3> offsets;

        public NativeArray<float> spriteSizes;

        public NativeArray<bool> removes;

        public NativeArray<float4> colorOffset;

        public NativeArray<int> team;

    }
}
